package com.stxx.stiot2.domain;
import com.alibaba.fastjson2.JSONObject;
import com.alibaba.fastjson2.annotation.JSONField;
import com.stxx.framwork.annotation.Id;
import lombok.Data;
import org.noear.snack.annotation.ONodeAttr;

import java.util.List;
import java.util.Map;
@Data
public class SysConfig {
    @Id
    private String code;
    private String name;
    private List<Item> items;
    private JSONObject params;

//    public String item(String item){
//        if(params == null){
//            return null;
//        }
//        return params.get(item);
//    }

    @Data
    public static class Item{
        private String code;
        private String name;
        private Boolean multiline;
    }
}
